import { createRouter, createWebHistory } from "vue-router";
const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: "/",
            redirect: "/login",
        },
        {
            path: "/login",
            name: "login",
            meta: {
                title: "登录",
                tdivide: true,
                bdivide: true,
                back: true,
                placeholder: false,

            },
            component: () => import("@/views/login.vue"),
        },
        {
            path: "/visitor",
            name: "visitor",
            meta: {
                title: "访客审核",
                placeholder: false,

            },
            component: () => import("@/views/visitor.vue"),
        },
        {
            path: "/visitorCheckin",
            name: "visitorCheckin",
            meta: {
                title: "访客登记",
                bdivide: true,
                placeholder: false,
            },
            component: () => import("@/views/visitorCheckin.vue"),
        },
        {
            path: "/video",
            name: "video",
            meta: {
                title: "访客培训",
                bdivide: true,
                placeholder: false,

            },
            component: () => import("@/views/video.vue"),
        },
        {
            path: "/qr",
            name: "qr",
            meta: {
                title: "邀请码",
                placeholder: false,

            },
            component: () => import("@/views/qr.vue"),
        },




    ]
})

export default router;
